<?php
class TeamController extends SController{
    public function index(){
        $id=$_GET['id'];
        $team_m=Factory::getClass('TeamModel');

        $team=$team_m->team($id);
        $pcount=$team_m->pcount($id);
        $player=$team_m->player($id);
        // var_dump($team);
        // var_dump($pcount);
        // var_dump($player);
        $this->_smart->assign('team',$team);
        $this->_smart->assign('pcount',$pcount);
        $this->_smart->assign('player',$player);
        $this->_smart->display('./app/home/View/team_v.html');
        }
}

?>

